<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
    <title>充值记录</title>
    <meta name="decorator" content="default"/>
    <script type="text/javascript">
        function page(n, s) {
            $("#pageNo").val(n);
            $("#pageSize").val(s);
            $("#searchForm").attr("action", "${ctx}/sys/mpWalletStream/userMpWalletStream");
            $("#searchForm").submit();
            return false;
        }
        
        function changeUserOrShop() {
            $("#searchForm").submit();
        }

    </script>

</head>
<body>
<ul class="nav nav-tabs">
    <li class="active"><a href="${ctx}/sys/mpWalletStream/userMpWalletStream">充值记录</a></li>
    <%--<li><a href="${ctx}/sys/user/acceptWithDrawApply">申请提现</a></li>--%>
</ul>

<form:form id="searchForm" class="breadcrumb form-search" action="/a/sys/mpWalletStream/userMpWalletStream"
           method="post">
    <input id="pageNo" name="pageNo" type="hidden" value="1"/>
    <input id="pageSize" name="pageSize" type="hidden" value="30"/>
    <select name="userOrShop" onchange="changeUserOrShop()">
        <option value="0"
                <c:if test="${'0' eq userOrShop}">selected</c:if> >用户
        </option>
        <option value="1"
                <c:if test="${'1' eq userOrShop}">selected</c:if> > 店铺
        </option>
    </select>
    <%--<input maxlength="50" class="input-medium" type="text"> </input>--%>
    <label>用户名：&nbsp;</label>
    <input id="realName" name="realName" value="${tbMpWalletStreamJYY.realName}" type="text" maxlength="50"
           class="input-medium"/>
    <%--<label>流水号：</label><input id="" name="stream_no" type="text" maxlength="50" class="input-medium￥" />--%>
		<span style="margin-top:8px;">
			<label>日期范围：&nbsp;</label>
			<input id="beginDate" style="width: 120px;"  name="beginDate" type="text" readonly="readonly" maxlength="20"
                   class="input-mini Wdate" value="${tbMpWalletStreamJYY.beginDate}"
                   onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
			<label>&nbsp;--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
			<input id="endDate" style="width: 120px;" name="endDate" type="text" readonly="readonly" maxlength="20" class="input-mini Wdate"
                   value="${tbMpWalletStreamJYY.endDate}"
                   onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>&nbsp;&nbsp;
			&nbsp;&nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>&nbsp;&nbsp;
		</span>
</form:form>
<span><font style="color: #00A6C7">${message1}</font></span>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
    <thead>
    <tr>
        <th>名称</th>
        <th>充值金额</th>
        <th>充值方式</th>
        <th>充值时间</th>
        <%--<th>管理</th>--%>
    </thead>
    <tbody>
    <c:forEach items="${tbMpWalletStreamJYYPage.list}" var="tbMpWalletStreamJYY">
    <tr>

        <td>
            <c:choose>
                <c:when test="${userOrShop eq '1'}">
                    ${tbMpWalletStreamJYY.userName}
                </c:when>
                <c:otherwise>
                    ${tbMpWalletStreamJYY.realName}
                </c:otherwise>
            </c:choose>
        </td>
        <td>${tbMpWalletStreamJYY.changeMoney}</td>
        <td>
            <c:if test="${tbMpWalletStreamJYY.payType eq '0'}">
                微信
            </c:if>
            <c:if test="${tbMpWalletStreamJYY.payType eq '1'}">
                支付宝
            </c:if>
            <c:if test="${tbMpWalletStreamJYY.payType eq '2'}">
                麻雀钱包
            </c:if>
        </td>
        <td><fmt:formatDate value="${tbMpWalletStreamJYY.createTime}" type="both"/></td>
   <%--     <td>
            <a href="${ctx}/sys/mpWalletStream/${tbMpWalletStreamJYY.id}">查看</a>
        </td>--%>

            <%-- <shiro:hasPermission name="sys:advertise:edit"><td>
                    <a href="${ctx}/sys/mpWalletStream/${tbMpWalletStreamJYYPage.id}">查看</a>
                    <a href="${ctx}/sys/mpWalletStream/${tbMpWalletStreamJYYPage.id}" onclick="return confirmx('确认要删除该信息吗？', this.href)">删除</a>
                </td></shiro:hasPermission>--%>
        </tr>
        </c:forEach>
    </tbody>
</table>
<div class="pagination">${tbMpWalletStreamJYYPage}</div>

<script type="text/javascript">//<!-- 无框架时，左上角显示菜单图标按钮。
/*if (!(self.frameElement && self.frameElement.tagName == "IFRAME")) {
    $("body").prepend("<i id=\"btnMenu\" class=\"icon-th-list\" style=\"cursor:pointer;float:right;margin:10px;\"></i><div id=\"menuContent\"></div>");
    $("#btnMenu").click(function () {
        top.$.jBox('get:/a/sys/menu/treeselect;JSESSIONID=0c057f9fcb854012ab3a2edee70a8a6d', {
            title: '选择菜单',
            buttons: {'关闭': true},
            width: 300,
            height: 350,
            top: 10
        });
        //if ($("#menuContent").html()==""){$.get("/a/sys/menu/treeselect", function(data){$("#menuContent").html(data);});}else{$("#menuContent").toggle(100);}
    });
}*/
</script>
</body>
</html>